import Mock from 'mockjs'
import '@/mock/extend'
const BASE_URL = process.env.VUE_APP_API_BASE_URL

const deviceList = Mock.mock({
  'list|100': [{
    'id|+1': 1,
    'deviceId|+1':1,
    'organization': '@cname',
    'deviceName': `@cname`,
    'macAd': '@url(http)',
    'deviceType': '@string',
    'resolution': '@string',
    'softVersion': '-',
    'deviceState': '@string',
    'playState': '@string',
  }]
})
Mock.mock(`${BASE_URL}/device`, 'post', () => {
  return deviceList
})
